package com.easondongh.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_permission")
public class SysPermission implements Serializable {
    /**
     * 权限id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 权限名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 权限所属模块
     */
    @TableField(value = "module")
    private String module;

    /**
     * 操作类型：增删改查
     */
    @TableField(value = "operation_type")
    private String operationType;

    /**
     * 权限相关uri
     */
    @TableField(value = "permission_uri")
    private String permissionUri;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_MODULE = "module";

    public static final String COL_OPERATION_TYPE = "operation_type";

    public static final String COL_PERMISSION_URI = "permission_uri";
}